package com.sgb.kjwl.model.entity.user;

import java.util.List;

public class MaterChooseEntity {

    /**
     * name : 计量方式
     * id : 1
     * type : [{"cname":"检尺","cid":"4"},{"cname":"过磅","cid":"2744"},{"cname":"123","cid":"5731"},{"cname":"KG","cid":"5750"}]
     */

    private String name;
    private String id;
    private List<TypeBean> type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<TypeBean> getType() {
        return type;
    }

    public void setType(List<TypeBean> type) {
        this.type = type;
    }

    public static class TypeBean {
        /**
         * cname : 检尺
         * cid : 4
         */

        private String cname;
        private String cid;
        private boolean checked = false;

        public TypeBean() {
        }

        public TypeBean(String cname, String cid) {
            this.cname = cname;
            this.cid = cid;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public String getCname() {
            return cname;
        }

        public void setCname(String cname) {
            this.cname = cname;
        }

        public String getCid() {
            return cid;
        }

        public void setCid(String cid) {
            this.cid = cid;
        }
    }
}
